var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
    res.send({
        code: 200,
        message: 'success',
        data: {
            list: [{
                id: 0,
                departmentName: '上海玖捌贰物联科技有限公司',
                sort: 0,
                status: 1,
                createTime: '2022-06-26 00:00:00',
                remark: '上海玖捌贰物联科技有限公司',
                children: [
                    {
                        id: 1,
                        departmentName: '研发部门',
                        sort: 1,
                        status: 1,
                        createTime: '2022-06-26 00:00:00',
                        remark: '研发部门',
                    },
                    {
                        id: 2,
                        departmentName: '综合部门',
                        sort: 2,
                        status: 1,
                        createTime: '2022-06-26 00:00:00',
                        remark: '综合部门',
                    },
                    {
                        id: 3,
                        departmentName: '财务部门',
                        sort: 3,
                        status: 1,
                        createTime: '2022-06-26 00:00:00',
                        remark: '财务部门',
                    },
                    {
                        id: 4,
                        departmentName: '人事部门',
                        sort: 4,
                        status: 1,
                        createTime: '2022-06-26 00:00:00',
                        remark: '人事部门',
                    }
                ]
            },
            ],
            total: 10
        }
    });

});

module.exports = router;
